//
//  MahjongAttributeCVC.m
//  Mahjong
//
//  Created by 饶首建 on 17/6/27.
//  Copyright © 2017年 com.ikamobile.com. All rights reserved.
//

#import "MahjongAttributeCVC.h"

@implementation MahjongAttributeCVC

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.layer.cornerRadius =  10.f;
        self.layer.masksToBounds = YES;
        self.layer.borderColor = UIColorHex(9B9B9B).CGColor;
        self.layer.borderWidth = 1.f;
        
        float w = self.frame.size.width;
        float h = self.frame.size.height;
        
//        self.backgroundColor = UIColorHex(EAEAEA);
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, w, h)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.font = [UIFont systemFontOfSize:25];
        _titleLabel.textColor = UIColorHex(9B9B9B);
        _titleLabel.adjustsFontSizeToFitWidth = YES;
        [self addSubview:_titleLabel];
    }
    return self;
}


@end
